export function SET_VERIFICA_CODEIMG(state, result) {
    state.verificationCode = result;
}
export function SET_USER_INFO(state, result) {
    if (!result) {
        return;
    }
    let userInfo = { 
        ...result,
        avatar: result.avatar ? state.fileDomin + '/' + result.avatar : state.fileDomin + '/noAvatar1.jpg'
    };
    state.userInfo = userInfo;
}
export function SET_SILDER_NAV_VISIBLE(state, result) {
    state.siderNavVisible = result;
}
export function SET_CATEGORY_VISIBLE(state, result) {
    state.categoryVisible = result;
}
export function SET_SIGNVISIBLE(state, visible) {
    state.signVisible = visible
}
export function SET_PROVINCE(state, result) {
    state.province = result;
}
export function SET_CITYS(state, result) {
    state.citys = result;
}
export function SET_DISTRICT(state, result) {
    state.district = result;
}
export function SET_ERROR_INFO(state, result) {
    state.errorInfo = result;
}
export function SET_CURRENT_ROUTE(state, result) {
    state.currentRouter = result;
}